package com.furongji.common.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

public enum CommentStatusEnum {

    HIDDEN(0, "隐藏"),
    VISIBLE(1, "显示");

    @Getter
    @EnumValue
    private final int code;

    private final String description;

    CommentStatusEnum(int code, String description) {
        this.code = code;
        this.description = description;
    }

    @JsonValue
    public String getDescription() {
        return description;
    }
}
